package com.zx.sys.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zx.sys.domain.User;

public interface UserMapper {
    int deleteByPrimaryKey(Integer userid);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    
    User login(User user);
    
    List<User> queryAllUser(User user);

	void deleteUserRoleByUid(Integer userid);

	void insertRoleMenu(@Param("userid")Integer userid, @Param("rid")Integer rid);
}